<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<title>中山市气象灾情系统</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<link rel="stylesheet" type="text/css" href="<%=basePath%>/login/css/style.css" />
		<link rel="stylesheet" type="text/css" href="<%=basePath%>/login/css/theme1.css" />
		<script type="text/javascript" src="<%=basePath%>/login/scripts/jquery-1.3.2.min.js"></script>
		<script type="text/javascript">
			function changeTab(panel){
				$("#panel_"+panel).siblings().hide();
				$("#topmenu").find("ul>li").removeClass("current");
				$("#panel_"+panel).fadeIn(500);
				$("#tab_"+panel).addClass("current");
			}
			function SetCwinHeight(){
			  var iframeid=document.getElementById("iframeid"); //iframe id
			  if (document.getElementById){
			   if (iframeid && !window.opera){
			    if (iframeid.contentDocument && iframeid.contentDocument.body.offsetHeight){
			     iframeid.height = iframeid.contentDocument.body.offsetHeight;
			    }else if(iframeid.Document && iframeid.Document.body.scrollHeight){
			     iframeid.height = iframeid.Document.body.scrollHeight;
			    }
			   }
			  }
			 }
			//滚动时间
			function sTime() {
				oScrolltime = document.getElementById("scrolltime");
				var time = new Date();
				var month = time.getMonth() + 1;
				var date = time.getDate();
				var hour = time.getHours();
				var minute = time.getMinutes();
				var second = time.getSeconds();
				//get weekday
				var day = time.getDay();
				if (minute < 10) {
					minute = "0" + minute;
				}
				if (second < 10) {
					second = "0" + second;
				}
				var weekday = 0;
				var strtime = month + "月" + date + "日" + hour + ":" + minute + ":" + second;
				oScrolltime.innerHTML = strtime;
				setTimeout("sTime()", 1000);
			}
		</script>
		<style type="text/css">
			td{border: none;}
		</style>
	</head>
	<body class="body" onload="sTime();">
		<center>
			<div id="container">
				<div id="header">
					<div id="topmenu" style="background-image:url('resources/images/logo.gif');background-repeat:none;height: 160px;width: 960px;padding-top: 134px;">
						<ul>
							<li class="current" id="tab_1">
								<a href="javascript:changeTab(1);">灾情数据管理</a>
							</li>
							<li id="tab_2">
								<a href="javascript:changeTab(2);">自动站数据监测</a>
							</li>
							<li id="tab_4">
								<a href="javascript:changeTab(4);">气象信息员管理</a>
							</li>
							<li id="tab_5">
								<a href="javascript:changeTab(5);">气象信息员交流论坛</a>
							</li>
							<li id="tab_6">
								<a href="javascript:changeTab(6);">气象信息员工作网站</a>
							</li>
							<c:if test="${admin.role==1}">
							<li id="tab_3">
								<a href="javascript:changeTab(3);">系统设置</a>
							</li>
							</c:if>
							<span style="color: #ffffff;">
								欢迎登录,${admin.lgname }&nbsp;&nbsp;<span id="scrolltime"></span>
								<a href="adminAction!logout.action" style="background: none;border: none;text-decoration: underline;">退出</a>
							</span>
						</ul>
					</div>
				</div>
				<div id="top-panel">
					<div id="panel_1">
						<ul>
							<li>
								<a href="reportAction!reportList.action?usrReport.reStatus=0" class="report" target="main">信息员上报灾情采集</a>
							</li>
							<li>
								<a href="disasterAction!reportAll.action" class="report" target="main">灾情审核合并</a>
							</li>
							<li>
								<a href="disasterAction!disUplodaList.action" class="report" target="main">灾情上报</a>
							</li>
							<li>
								<a href="disasterAction!uploadHistory.action" class="report" target="main">历史上报文件</a>
							</li>
							<li>
								<a href="sumReportsAction!reports_town.action" class="report" target="main">历史灾情查询</a>
							</li>
						</ul>
					</div>
					<div id="panel_2" style="display: none">
						<ul>
							<li>
								<a href="warnReportAction!disasterWarning.action" class="report" target="main">风雨监测预警</a>
							</li>
							<li>
								<a href="zdzReportAction!reportTemp.action" class="report" target="main">历史数据查询</a>
							</li>
							<c:if test="${admin.role==1}">
							<li>
								<a href="zdzReportAction!warnSettingPage.action" class="report" target="main">监测预警值设置</a>
							</li>
							</c:if>
							<%--<li>
								<a href="warnReportAction!warnDisaster.action " class="report" target="main">气象灾情上报标准预警</a>
							</li>
							<li>
								<a href="zdzReportAction!warnDisasterSettingPage.action" class="report" target="main">气象灾情上报标准预警值设置</a>
							</li>
							<li>
								<a href="warnReportAction!warnSignal.action" class="report" target="main">预警信号发布标准预警</a>
							</li>
							<li>
								<a href="zdzReportAction!warnSignalSettingPage.action" class="report" target="main">预警信号发布标准预警值设置</a>
							</li>
							<li>
								<a href="warnReportAction!warnZml.action" class="report" target="main">紫马岭站气候统计预警</a>
							</li>
							<li>
								<a href="zdzReportAction!warnZmlSettingPage.action" class="report" target="main">紫马岭站气候统计预警值设置</a>
							</li>
							--%>
							<c:if test="${admin.role==1}">
							<li>
								<a href="settingAction!list.action?className=zdz" class="report" target="main">自动站基本信息设置</a>
							</li>
							</c:if>
						</ul>
					</div>
					<div id="panel_3" style="display: none">
						<ul>
							<li>
								<a href="settingAction!list.action?className=admin" class="report" target="main">系统登录用户设置</a>
							</li>
							<li>
								<a href="settingAction!list.action?className=qfr" class="report" target="main">签发人设置</a>
							</li>
							<li>
								<a href="settingAction!list.action?className=town" class="report" target="main">城镇设置</a>
							</li>
							<li>
								<a href="settingAction!list.action?className=dstype" class="report" target="main">灾情类别设置</a>
							</li>
							<li>
								<a href="propertiesSetAction!noteSetPage.action" class="report" target="main">NOTES设置</a>
							</li>
							<li>
								<a href="login/system/disasterAction!disasterDefaultSettingPage.action" class="report" target="main">本站基本信息设置</a>
							</li>
							<li>
								<a href="warnReportAction!warnSoundPage.action" class="report" target="main">预警声音设置</a>
							</li>
							<li>
								<a href="settingAction!list.action?className=linkmanBean" class="report" target="main">协管员设置</a>
							</li>
							<li>
								<a href="settingAction!list.action?className=linkmanType" class="report" target="main">协管员类别设置</a>
							</li>
							<li>
								<a href="propertiesSetAction!linkmanCountSetPage.action" class="report" target="main">信息员积分设置</a>
							</li>
						</ul>
					</div>
					<div id="panel_4" style="display: none">
						<ul>
						<c:if test="${admin.role==1}">
							<li>
								<a href="adminAction!msgPage.action" class="report" target="main">短信发送</a>
							</li>
							</c:if>
							<li>
								<a href="adminAction!linkmanCount.action" class="report" target="main">信息员积分排名</a>
							</li>
						</ul>
					</div>
					<div id="panel_5" style="display: none">
						<ul>
							<li>
								<a href="http://172.22.42.203:8080/f" class="report" target="_blank">内网访问</a>
							</li>
							<li>
								<a href="http://zq.zsqx.com/f" class="report" target=""_blank"">外网访问</a>
							</li>
						</ul>
					</div>
					<div id="panel_6" style="display: none">
						<ul>
							<li>
								<a href="http://172.22.42.172:84" class="report" target="_blank">内网访问</a>
							</li>
							<li>
								<a href="http://qxyj.zsqx.com" class="report" target=""_blank"">外网访问</a>
							</li>
						</ul>
					</div>
				</div>
				<div style="margin-top: 10px;">
					<iframe id="iframeid" name="main" scrolling="no" onload="Javascript:SetCwinHeight()" height="1px" frameborder="0" src="reportAction!reportList.action?usrReport.reStatus=0" width="960px">
<%--					<iframe name="main" scrolling="no" height="1500px"  frameborder="0" src="reportList.jsp" width="960px">--%>
					</iframe>
				</div>
			</div>
		</center>
	</body>
</html>
